package com.light.wanting.account.api;

import com.light.applet.common.entity.Account;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author: 魏彪
 */
@FeignClient(name = "wanting-account", path = "/account")
public interface AccountFeign {

    @PostMapping("/register")
    Account register(@RequestBody Account account);

    @GetMapping("/all")
    List<Account> all();
}
